package mn.idax.exchange.otc.mapper;

import mn.idax.exchange.otc.entity.OTCOrder;
import mn.idax.exchange.otc.entity.OTCOrderExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OTCOrderMapper {

    long countByExample(OTCOrderExample example);

    int deleteByExample(OTCOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OTCOrder record);

    int insertSelective(OTCOrder record);

    List<OTCOrder> selectByExampleWithBLOBs(OTCOrderExample example);

    List<OTCOrder> selectByExample(OTCOrderExample example);

    OTCOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OTCOrder record, @Param("example") OTCOrderExample example);

    int updateByExampleWithBLOBs(@Param("record") OTCOrder record, @Param("example") OTCOrderExample example);

    int updateByExample(@Param("record") OTCOrder record, @Param("example") OTCOrderExample example);

    int updateByPrimaryKeySelective(OTCOrder record);

    int updateByPrimaryKeyWithBLOBs(OTCOrder record);

    int updateByPrimaryKey(OTCOrder record);
}